package com.example.authcenter.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.common.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* <p>
*  Mapper 接口
* </p>
*
* @author mhg
* @since 2021-09-09
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select id,username,password from user where username=#{userName} ")
    User findByUserName(String userName);
}
